inherited FCadastroNotaFiscal: TFCadastroNotaFiscal
  Left = 244
  Top = 137
  Caption = 'Digita'#231#227'o Nota Fiscal'
  OldCreateOrder = True
  PixelsPerInch = 96
  TextHeight = 16
  object Label23: TLabel [0]
    Left = 581
    Top = 404
    Width = 118
    Height = 16
    Caption = 'PREST_NF_VALOR'
  end
  inherited pcCadastro: TPageControl
    ActivePage = TsCadastro
    TabIndex = 1
    inherited TsPesquisa: TTabSheet
      inherited dbgPesquisaPadra: TDBGrid
        Columns = <
          item
            Expanded = False
            FieldName = 'NF_CODIGO'
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'NF_PEDIDO'
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'NF_NOTAFISCAL'
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'NF_SERIE'
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'NF_DATAEMISSAO'
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'NF_DATAESTOQUE'
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'NF_TOTALITENS'
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'NF_VALORNF'
            Width = 89
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'NF_SITUACAO'
            Visible = True
          end>
      end
    end
    inherited TsCadastro: TTabSheet
      inherited panel1: TPanel
        inherited panel2: TPanel
          inherited DBNavigator1: TDBNavigator
            Hints.Strings = ()
          end
        end
        inherited panel3: TPanel
          Top = 396
          Height = 88
          Caption = '-'
          inherited BtnConsuta: TBitBtn
            OnClick = BtnConsutaClick
          end
          inherited BtnCancelar: TBitBtn
            TabOrder = 3
          end
          object BiTAtualizaDesatualiza: TBitBtn
            Left = 532
            Top = 5
            Width = 100
            Height = 25
            Caption = 'Atualizar'
            TabOrder = 1
            OnClick = BiTAtualizaDesatualizaClick
            Glyph.Data = {
              36050000424D3605000000000000360400002800000010000000100000000100
              0800000000000001000000000000000000000001000000010000055A0B00055E
              0C0005610B0005640B0004660B0004670B0004680B0004690B00046A0B00046A
              0B00046A0B00046A0B00046A0B00046A0B0004690B0004690B0004680B000467
              0B0005640C00075F0D0008590E000A5210000C4C11000E4513000F401400103B
              15001236160014301700162919001A211B001B1F1D001C1D1E001D1E1E001E1E
              1F001E1F20001F20200020212100212222002223230024242400252526002727
              2700292929002B2B2B002C2C2C002D2D2D002E2E2E002F2F2F00303030003131
              310032323200333333003434340035353500383838003B3B3B00424242004B4A
              4A00555454005B5959005E5C5C005E5C5C005E5C5C005E5C5C005E5C5C005F5D
              5C005F5D5D005F5F5D0060615D0060635D0060655D005F685C005E6B5B005D6F
              5A005C73590058755700567655005476540052765200507550004F744F004D72
              4D004A714A004770470043754600407B45003C81430037884200348E41002E95
              3E002A9D3D0027A33C0025A73B0022AB3A0024AF3F0025B2430026B4470028B4
              4A002AB54E002DB854002FB8590030BA5D0030B65E0030B3600031AE640032AA
              680033A66E0034A27400369E7B00389982003A938B003C8C94003C8799003D83
              9D003E7EA2003F76AC004171B200406BB400456BB0004A6AB0004E6FAB005174
              A6005478A100577D9C005A8197005D85930060888F00628E8900649281006695
              7B00679777006A9B74006E9F720072A26F0074A6720079AA74007FAE780085B3
              7E008CB7820090BA850095BD8A009BBF8E00A0C29300A8C69A00AFCAA000B7CE
              A800C7D4B400D0D8BD00D9DCC500E0E1CA00E6E4CD00EAE6CD00EFE9CE00F4EC
              CF00F6EDCD00F9ECCB00FAEFCE00FCF2D000FDF3D100FDF4D300FDF6D500FDF8
              D700FDF9D900FDFBDE00FDFCE200FDFBE500FDF8E500FDECE700FDDAE900FDC6
              EE00FEB5F100FEA3F400FE79F800FE4DFC00FE31FD00FE1FFE00FE11FE00FE08
              FE00FE03FE00FE01FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00
              FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00FE00
              FE00FE00FE00FE00FE00FE00FE00FE00FE00FE01FE00FA10FB00F51FF900EB35
              F500E249F200DB5BEF00D46AEC00CC7EE800C78DE500C29AE200BDA7DE00BCB2
              D900B9BCD500B9BDD200BABDD000BABDCE00BBBCCB00BCBCC900BCBAC500B9B6
              C000B5B2BD00B7B3B800BAB3B400BBB3AF00BDB3AB00BCB3A800BBB2A600BBB2
              A500BCB1A400BBAFA200BCAEA100BEB09F00C0B19E00C4B19C00C8B29A00CFB4
              9600DAB58D00DFB68800E4B78500E8B78200E8B88100E9B88100E7BA8600E5BB
              8800E5BD8B00E5C08E00E0BB8D00D2B08A00C4A68600B89D8300AF978200AB95
              8000A8948000A39481009E8E80009B8B7D0097897A0096887B00BDBDBDBDBD42
              4242424242BDBDBDBDBDBDBDBD4042DBE4FDFFFCE44242BDBDBDBDBD4293FBFC
              DFDADADEFEFFDE42BDBDBD429455559C9BD0759CA5E4FFDE42BDBD42820D0D85
              F3EFEFEF9BA5E4FF42BD42890D656B0D8C9DF3EFEFF3A5FFE842530D60636565
              0D8B9D9BEFEF9BE2F9420D0D0D5F5F0D0D0D48FBFEF7D0DAFE4242940D5D5D0D
              9DFD1F261FFE757AFE4242950D5B5C84A59AE61FF8F39BE6F8424295FB0D5D0D
              91A5A4921F4A9EFDE842BD4293830D5C0D858F918EFCE1FC42BDBD4194DC850D
              0D0D0D0D8993FCDE42BDBDBD42D5D8E19494D295E3F8E442BDBDBDBDBD4242D9
              DDE0E3E3E04242BDBDBDBDBDBDBDBD424242424242BDBDBDBDBD}
          end
        end
        object PageControl: TPageControl
          Left = 1
          Top = 36
          Width = 842
          Height = 360
          ActivePage = TSNota
          Align = alClient
          TabIndex = 0
          TabOrder = 2
          OnChange = PageControlChange
          OnEnter = PageControlEnter
          object TSNota: TTabSheet
            Caption = 'NF de Compra'
            object Label2: TLabel
              Left = 4
              Top = 66
              Width = 71
              Height = 16
              Caption = 'Pedido (F-8)'
              FocusControl = DBEPedido
            end
            object Label6: TLabel
              Left = 85
              Top = 66
              Width = 31
              Height = 16
              Caption = 'Local'
            end
            object Label7: TLabel
              Left = 4
              Top = 118
              Width = 96
              Height = 16
              Caption = 'Fornecedor (F-8)'
            end
            object Label25: TLabel
              Left = 4
              Top = 5
              Width = 40
              Height = 16
              Caption = 'C'#243'digo'
              FocusControl = DBEPedido
            end
            object DBText1: TDBText
              Left = 4
              Top = 23
              Width = 80
              Height = 21
              DataField = 'NF_CODIGO'
              DataSource = DSNotaFiscal
            end
            object DBEPedido: TDBEdit
              Left = 4
              Top = 84
              Width = 75
              Height = 22
              Ctl3D = False
              DataField = 'NF_PEDIDO'
              DataSource = dsCadastro
              ParentCtl3D = False
              TabOrder = 2
              OnExit = DBEPedidoExit
              OnKeyDown = DBEPedidoKeyDown
            end
            object DBChBDiferenca: TDBCheckBox
              Left = 449
              Top = 22
              Width = 144
              Height = 21
              Caption = 'Aceitar Diferen'#231'a ?   '
              DataField = 'NF_ACEITADIF'
              DataSource = dsCadastro
              TabOrder = 1
              ValueChecked = 'True'
              ValueUnchecked = 'False'
            end
            object DBLCBLocal: TDBLookupComboBox
              Left = 85
              Top = 84
              Width = 255
              Height = 22
              Ctl3D = False
              DataField = 'NF_LOCAL'
              DataSource = dsCadastro
              KeyField = 'LOC_CODIGO'
              ListField = 'LOC_DESCRICAO'
              ListSource = DSLocal
              ParentCtl3D = False
              TabOrder = 3
              OnKeyDown = DBLCBFornecedorKeyDown
            end
            object DBLCBFornecedor: TDBLookupComboBox
              Left = 4
              Top = 135
              Width = 576
              Height = 22
              Ctl3D = False
              DataField = 'NF_FORNECEDOR'
              DataSource = dsCadastro
              KeyField = 'FORN_CODIGO'
              ListField = 'FORN_RAZAO'
              ListSource = DSFornecedor
              ParentCtl3D = False
              TabOrder = 5
              OnKeyDown = DBLCBFornecedorKeyDown
            end
            object DBRGSituacaoPedido: TDBRadioGroup
              Left = 85
              Top = 6
              Width = 354
              Height = 46
              Caption = '  Situa'#231#227'o  '
              Columns = 3
              Ctl3D = False
              DataField = 'NF_SITUACAO'
              DataSource = dsCadastro
              Enabled = False
              Items.Strings = (
                'N'#227'o Atualizada'
                'Atualizada'
                'Com Diferen'#231'a')
              ParentCtl3D = False
              TabOrder = 0
              Values.Strings = (
                '0'
                '1'
                '2')
            end
            object GBDadosNota: TGroupBox
              Left = 346
              Top = 55
              Width = 235
              Height = 52
              Caption = '  Nota Fiscal  '
              Ctl3D = False
              ParentCtl3D = False
              TabOrder = 4
              object Label41: TLabel
                Left = 11
                Top = 21
                Width = 45
                Height = 16
                Caption = 'N'#250'mero'
              end
              object Label42: TLabel
                Left = 150
                Top = 21
                Width = 34
                Height = 16
                Caption = 'S'#233'rie '
              end
              object DBENotaFiscal: TDBEdit
                Left = 64
                Top = 21
                Width = 82
                Height = 22
                Ctl3D = False
                DataField = 'NF_NOTAFISCAL'
                DataSource = dsCadastro
                MaxLength = 6
                ParentCtl3D = False
                TabOrder = 0
                OnKeyPress = DBENotaFiscalKeyPress
              end
              object DBESerie: TDBEdit
                Left = 187
                Top = 21
                Width = 42
                Height = 22
                Ctl3D = False
                DataField = 'NF_Serie'
                DataSource = dsCadastro
                ParentCtl3D = False
                TabOrder = 1
              end
            end
            object GBCFOP: TGroupBox
              Left = 6
              Top = 170
              Width = 284
              Height = 68
              Caption = '  CFOP  '
              Ctl3D = False
              ParentCtl3D = False
              TabOrder = 6
              object Label4: TLabel
                Left = 11
                Top = 16
                Width = 66
                Height = 16
                Caption = 'Nota Fiscal'
              end
              object Label5: TLabel
                Left = 133
                Top = 16
                Width = 65
                Height = 16
                Caption = 'Livro Fiscal'
              end
              object DBLCBCFOPNF: TDBLookupComboBox
                Left = 11
                Top = 33
                Width = 110
                Height = 22
                Ctl3D = False
                DataField = 'NF_CFOPNF'
                DataSource = dsCadastro
                KeyField = 'CFOP_CODIGO'
                ListField = 'CFOP_CODIGOFISCAL'
                ListSource = DSCFOPNF
                ParentCtl3D = False
                ParentShowHint = False
                ShowHint = True
                TabOrder = 0
                OnExit = DBLCBCFOPNFExit
                OnKeyDown = DBLCBFornecedorKeyDown
                OnKeyUp = DBLCBCFOPNFKeyUp
                OnMouseMove = DBLCBCFOPNFMouseMove
              end
              object DBLCBCFOPLF: TDBLookupComboBox
                Left = 133
                Top = 33
                Width = 106
                Height = 22
                Ctl3D = False
                DataField = 'NF_CFOPLF'
                DataSource = dsCadastro
                KeyField = 'CFOP_CODIGO'
                ListField = 'CFOP_CODIGOFISCAL'
                ListSource = DSCFOPLF
                ParentCtl3D = False
                ParentShowHint = False
                ShowHint = True
                TabOrder = 1
                OnKeyDown = DBLCBFornecedorKeyDown
                OnKeyUp = DBLCBCFOPNFKeyUp
                OnMouseMove = DBLCBCFOPNFMouseMove
              end
            end
            object GBData: TGroupBox
              Left = 295
              Top = 170
              Width = 285
              Height = 68
              Caption = '  Data  '
              Ctl3D = False
              ParentCtl3D = False
              TabOrder = 7
              object Label10: TLabel
                Left = 142
                Top = 16
                Width = 48
                Height = 16
                Caption = 'Estoque'
              end
              object Label11: TLabel
                Left = 11
                Top = 16
                Width = 51
                Height = 16
                Caption = 'Emiss'#227'o'
              end
              object DBDEDataEmissao: TDBDateEdit
                Left = 11
                Top = 33
                Width = 117
                Height = 26
                DataField = 'NF_DATAEMISSAO'
                DataSource = dsCadastro
                Ctl3D = False
                ButtonWidth = 26
                NumGlyphs = 2
                ParentCtl3D = False
                TabOrder = 0
                OnEnter = DBDEDataEmissaoEnter
              end
              object DBDEDataEstoque: TDBDateEdit
                Left = 142
                Top = 33
                Width = 116
                Height = 26
                DataField = 'NF_DATAESTOQUE'
                DataSource = dsCadastro
                Ctl3D = False
                ButtonWidth = 26
                NumGlyphs = 2
                ParentCtl3D = False
                TabOrder = 1
                OnEnter = DBDEDataEstoqueEnter
              end
            end
          end
          object TSItensNota: TTabSheet
            Caption = 'Itens da Nota'
            ImageIndex = 2
            object Label27: TLabel
              Left = 265
              Top = 57
              Width = 78
              Height = 16
              Caption = 'Valor Unit'#225'rio'
            end
            object Label32: TLabel
              Left = 254
              Top = 5
              Width = 76
              Height = 16
              Caption = 'Produto (F-8)'
            end
            object Label33: TLabel
              Left = 4
              Top = 57
              Width = 36
              Height = 16
              Caption = 'CFOP'
            end
            object Label34: TLabel
              Left = 86
              Top = 57
              Width = 60
              Height = 16
              Caption = 'Inc. Fiscal'
            end
            object Label35: TLabel
              Left = 171
              Top = 57
              Width = 66
              Height = 16
              Caption = 'Quantidade'
            end
            object Label36: TLabel
              Left = 459
              Top = 57
              Width = 55
              Height = 16
              Caption = 'Desconto'
            end
            object Label37: TLabel
              Left = 4
              Top = 103
              Width = 48
              Height = 16
              Caption = '% ICMS'
            end
            object Label38: TLabel
              Left = 92
              Top = 103
              Width = 31
              Height = 16
              Caption = '% IPI'
            end
            object Label26: TLabel
              Left = 86
              Top = 5
              Width = 70
              Height = 16
              Caption = 'C'#243'd produto'
            end
            object Label66: TLabel
              Left = 172
              Top = 5
              Width = 71
              Height = 16
              Caption = 'Ref Produto'
              Font.Charset = DEFAULT_CHARSET
              Font.Color = clBlack
              Font.Height = -13
              Font.Name = 'MS Sans Serif'
              Font.Style = []
              ParentFont = False
            end
            object Label43: TLabel
              Left = 362
              Top = 57
              Width = 62
              Height = 16
              Caption = 'Valor Total'
            end
            object Label44: TLabel
              Left = 178
              Top = 103
              Width = 49
              Height = 16
              Caption = 'Valor IPI'
            end
            object Label31: TLabel
              Left = 4
              Top = 5
              Width = 71
              Height = 16
              Caption = 'Pedido (F-8)'
              FocusControl = DBEPedido
            end
            object DBLCBProduto: TDBLookupComboBox
              Left = 255
              Top = 22
              Width = 327
              Height = 22
              Hint = '(F7) Todos - (F8) Fornecedor'
              Ctl3D = False
              DataField = 'ITENS_NF_PRODUTO'
              DataSource = DSItensNF
              KeyField = 'PROD_CODIGO'
              ListField = 'PROD_DESCRICAOSAI'
              ListSource = DSProduto
              ParentCtl3D = False
              ParentShowHint = False
              ShowHint = True
              TabOrder = 3
              OnExit = DBLCBProdutoExit
              OnKeyDown = DBLCBContaKeyDown
            end
            object DBLCBCFOPLivroFiscalProduto: TDBLookupComboBox
              Left = 4
              Top = 74
              Width = 75
              Height = 22
              Ctl3D = False
              DataField = 'ITENS_NF_CFOPLF'
              DataSource = DSItensNF
              KeyField = 'CFOP_CODIGO'
              ListField = 'CFOP_CODIGOFISCAL'
              ListSource = DSCFOPLF
              ParentCtl3D = False
              TabOrder = 4
              OnKeyDown = DBLCBContaKeyDown
              OnKeyUp = DBLCBCFOPNFKeyUp
              OnMouseMove = DBLCBCFOPNFMouseMove
            end
            object DBPedido: TDBEdit
              Left = 4
              Top = 22
              Width = 75
              Height = 22
              Ctl3D = False
              DataField = 'ITENS_NF_PEDIDO'
              DataSource = DSItensNF
              ParentCtl3D = False
              TabOrder = 0
              OnKeyDown = DBPedidoKeyDown
            end
            object DBCodProduto: TDBEdit
              Left = 86
              Top = 22
              Width = 75
              Height = 22
              Ctl3D = False
              DataField = 'ITENS_NF_PRODUTO'
              DataSource = DSItensNF
              ParentCtl3D = False
              TabOrder = 1
              OnExit = DBCodProdutoExit
            end
            object EdRefProdutoMercadoria: TEdit
              Left = 171
              Top = 22
              Width = 75
              Height = 22
              Ctl3D = False
              ParentCtl3D = False
              TabOrder = 2
              OnExit = EdRefProdutoMercadoriaExit
            end
            object DBIncentivoFiscal: TDBEdit
              Left = 86
              Top = 74
              Width = 75
              Height = 22
              Ctl3D = False
              DataField = 'ITENS_NF_INCENTIVOFISCAL'
              DataSource = DSItensNF
              ParentCtl3D = False
              TabOrder = 5
            end
            object RxDBCQtd: TRxDBCalcEdit
              Left = 171
              Top = 74
              Width = 84
              Height = 23
              DataField = 'ITENS_NF_QUANTIDADE'
              DataSource = DSItensNF
              Ctl3D = False
              DecimalPlaces = 4
              DisplayFormat = '0.,0000'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 6
            end
            object RxDBCValorUnitario: TRxDBCalcEdit
              Left = 265
              Top = 74
              Width = 83
              Height = 23
              DataField = 'ITENS_NF_VALORUNITARIO'
              DataSource = DSItensNF
              Ctl3D = False
              DecimalPlaces = 4
              DisplayFormat = '0.,0000'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 7
            end
            object RxDBCValorTotal: TRxDBCalcEdit
              Left = 362
              Top = 74
              Width = 84
              Height = 23
              DataField = 'ITENS_NF_VALORTOTAL'
              DataSource = DSItensNF
              Ctl3D = False
              DisplayFormat = '0.,00'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 8
              OnEnter = RxDBCValorTotalEnter
            end
            object RxDBDesconto: TRxDBCalcEdit
              Left = 459
              Top = 74
              Width = 84
              Height = 23
              DataField = 'ITENS_NF_DESCONTO'
              DataSource = DSItensNF
              Ctl3D = False
              DisplayFormat = '0.,00'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 9
            end
            object RxDBPercICMS: TRxDBCalcEdit
              Left = 4
              Top = 121
              Width = 76
              Height = 23
              DataField = 'ITENS_NF_PERICMS'
              DataSource = DSItensNF
              Ctl3D = False
              DecimalPlaces = 0
              DisplayFormat = '0'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 10
            end
            object RxDBPercIPI: TRxDBCalcEdit
              Left = 92
              Top = 121
              Width = 77
              Height = 23
              DataField = 'ITENS_NF_PERIPI'
              DataSource = DSItensNF
              Ctl3D = False
              DecimalPlaces = 0
              DisplayFormat = '0'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 11
            end
            object RxDBValorIPI: TRxDBCalcEdit
              Left = 178
              Top = 121
              Width = 84
              Height = 23
              DataField = 'ITENS_NF_VALORIPI'
              DataSource = DSItensNF
              Ctl3D = False
              DisplayFormat = '0.,00'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 12
              OnEnter = RxDBValorIPIEnter
            end
            object DBREncerrarItem: TDBRadioGroup
              Left = 271
              Top = 100
              Width = 125
              Height = 46
              Caption = '  Encerrar Item ?  '
              Columns = 2
              Ctl3D = False
              DataField = 'ITENS_NF_ENCERRAITEMPEDIDO'
              DataSource = DSItensNF
              Items.Strings = (
                'Sim'
                'N'#227'o')
              ParentCtl3D = False
              TabOrder = 13
              Values.Strings = (
                'S'
                'N')
            end
            object DBNitens: TDBNavigator
              Tag = 11
              Left = 405
              Top = 118
              Width = 176
              Height = 28
              DataSource = DSItensNF
              VisibleButtons = [nbFirst, nbPrior, nbNext, nbLast]
              TabOrder = 14
            end
            object BitInseriItem: TBitBtn
              Left = 4
              Top = 162
              Width = 83
              Height = 29
              Caption = '&Incluir'
              TabOrder = 15
              OnClick = BitInseriItemClick
              Glyph.Data = {
                76010000424D7601000000000000760000002800000020000000100000000100
                04000000000000010000130B0000130B00001000000000000000000000000000
                800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
                FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF0033333333B333
                333B33FF33337F3333F73BB3777BB7777BB3377FFFF77FFFF77333B000000000
                0B3333777777777777333330FFFFFFFF07333337F33333337F333330FFFFFFFF
                07333337F3FF3FFF7F333330F00F000F07333337F77377737F333330FFFFFFFF
                07333FF7F3FFFF3F7FFFBBB0F0000F0F0BB37777F7777373777F3BB0FFFFFFFF
                0BBB3777F3FF3FFF77773330F00F000003333337F773777773333330FFFF0FF0
                33333337F3FF7F37F3333330F08F0F0B33333337F7737F77FF333330FFFF003B
                B3333337FFFF77377FF333B000000333BB33337777777F3377FF3BB3333BB333
                3BB33773333773333773B333333B3333333B7333333733333337}
              NumGlyphs = 2
            end
            object BitEditarItem: TBitBtn
              Left = 92
              Top = 162
              Width = 84
              Height = 29
              Caption = '&Editar'
              TabOrder = 16
              OnClick = BitEditarItemClick
              Glyph.Data = {
                76010000424D7601000000000000760000002800000020000000100000000100
                04000000000000010000120B0000120B00001000000000000000000000000000
                800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
                FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333000000
                000033333377777777773333330FFFFFFFF03FF3FF7FF33F3FF700300000FF0F
                00F077F777773F737737E00BFBFB0FFFFFF07773333F7F3333F7E0BFBF000FFF
                F0F077F3337773F3F737E0FBFBFBF0F00FF077F3333FF7F77F37E0BFBF00000B
                0FF077F3337777737337E0FBFBFBFBF0FFF077F33FFFFFF73337E0BF0000000F
                FFF077FF777777733FF7000BFB00B0FF00F07773FF77373377373330000B0FFF
                FFF03337777373333FF7333330B0FFFF00003333373733FF777733330B0FF00F
                0FF03333737F37737F373330B00FFFFF0F033337F77F33337F733309030FFFFF
                00333377737FFFFF773333303300000003333337337777777333}
              NumGlyphs = 2
            end
            object BitExcluirItem: TBitBtn
              Left = 180
              Top = 162
              Width = 83
              Height = 29
              Caption = '&Excluir'
              TabOrder = 17
              OnClick = BitExcluirItemClick
              Glyph.Data = {
                B2050000424DB205000000000000360400002800000012000000130000000100
                0800000000007C010000C30E0000C30E00000001000000000000000000007B00
                0000BD000000FF0000007B7B000000FF0000FFFF000000315A0008427300084A
                730000007B007B007B00084A7B0008527B0021527B00007B7B007B7B7B00004A
                840008528400105284002963840008528C00085A8C00185A8C0018638C002963
                8C0008529400185A9400296B9400316B94002973940031739400085A9C001863
                9C0018739C0029739C0031739C0031849C00005AA5002173A5003973A500297B
                A500186BAD00106BB500317BB5002984B5004A8CB500086BBD000073BD001073
                BD001873BD00217BBD004284BD00318CBD004A8CBD005294BD005A9CBD00BDBD
                BD001073C600007BC600217BC600428CC6004A8CC6005A9CC6000084CE000884
                CE00398CCE005A9CCE00639CCE001884D6002184D600088CD600108CD6004294
                D600399CD6004A9CD600529CD6005A9CD6005AA5D60063ADD6001884DE002184
                DE00188CDE001094DE001894DE003194DE00299CDE004AA5DE005AA5DE004AB5
                DE00189CE700219CE700429CE7005AA5E7005AADE70063ADE7006BB5E70021A5
                EF0029A5EF0031A5EF0063B5EF006BBDEF0029ADF70031ADF7006BBDF7000000
                FF00FF00FF0031B5FF0039B5FF0042B5FF0039BDFF0042BDFF0042C6FF004AC6
                FF006BC6FF004ACEFF0052CEFF0052D6FF005ADEFF0063E7FF0000FFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFF
                FF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00FFFFFF00393939393939
                3939393939393939393939690000396939393939393939393939393939396939
                0000396969393910101010101010101010693939000039696969000000000000
                0000000069693939000039396969007879797978797979696939393900003939
                3969697903030303030379691039393900003939396969697978797979786969
                1039393900003939393969696903030369696900103939390000393939390069
                6969797869697900103939390000393939390079036969696903790010393939
                0000393939390079796969696978790010393939000039393939007903696969
                6900000010393939000039393939007869697900696979001039393900003939
                3939006969697900696969693939393900003939396969697978790079003969
                6939393900003969696969000000000000393939696939390000396969693939
                3939393939393939393969390000393939393939393939393939393939393969
                00003939393939393939393939393939393939390000}
            end
            object BitSalvarItem: TBitBtn
              Tag = 1
              Left = 267
              Top = 162
              Width = 84
              Height = 29
              Caption = '&Salvar'
              TabOrder = 18
              OnClick = BitSalvarItemClick
              Glyph.Data = {
                76010000424D7601000000000000760000002800000020000000100000000100
                04000000000000010000130B0000130B00001000000000000000000000000000
                800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
                FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333330070
                7700333333337777777733333333008088003333333377F73377333333330088
                88003333333377FFFF7733333333000000003FFFFFFF77777777000000000000
                000077777777777777770FFFFFFF0FFFFFF07F3333337F3333370FFFFFFF0FFF
                FFF07F3FF3FF7FFFFFF70F00F0080CCC9CC07F773773777777770FFFFFFFF039
                99337F3FFFF3F7F777F30F0000F0F09999937F7777373777777F0FFFFFFFF999
                99997F3FF3FFF77777770F00F000003999337F773777773777F30FFFF0FF0339
                99337F3FF7F3733777F30F08F0F0337999337F7737F73F7777330FFFF0039999
                93337FFFF7737777733300000033333333337777773333333333}
              NumGlyphs = 2
            end
            object BitCancelarItem: TBitBtn
              Tag = 1
              Left = 356
              Top = 162
              Width = 83
              Height = 29
              Caption = '&Cancelar'
              TabOrder = 19
              OnClick = BitCancelarItemClick
              Glyph.Data = {
                76010000424D7601000000000000760000002800000020000000100000000100
                04000000000000010000130B0000130B00001000000000000000000000000000
                800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
                FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
                3333333333FFFFF3333333333999993333333333F77777FFF333333999999999
                33333337777FF377FF3333993370739993333377FF373F377FF3399993000339
                993337777F777F3377F3393999707333993337F77737333337FF993399933333
                399377F3777FF333377F993339903333399377F33737FF33377F993333707333
                399377F333377FF3377F993333101933399377F333777FFF377F993333000993
                399377FF3377737FF7733993330009993933373FF3777377F7F3399933000399
                99333773FF777F777733339993707339933333773FF7FFF77333333999999999
                3333333777333777333333333999993333333333377777333333}
              NumGlyphs = 2
            end
            object BitPesquisarItem: TBitBtn
              Tag = 1
              Left = 446
              Top = 162
              Width = 137
              Height = 29
              Caption = '&Consulta Itens'
              TabOrder = 20
              OnClick = BitPesquisarItemClick
              Glyph.Data = {
                76010000424D7601000000000000760000002800000020000000100000000100
                04000000000000010000130B0000130B00001000000000000000000000000000
                800000800000008080008000000080008000808000007F7F7F00BFBFBF000000
                FF0000FF000000FFFF00FF000000FF00FF00FFFF0000FFFFFF00333333333333
                33033333333333333F7F3333333333333000333333333333F777333333333333
                000333333333333F777333333333333000333333333333F77733333333333300
                033333333FFF3F777333333700073B703333333F7773F77733333307777700B3
                333333773337777333333078F8F87033333337F3333337F33333778F8F8F8773
                333337333333373F333307F8F8F8F70333337F33FFFFF37F3333078999998703
                33337F377777337F333307F8F8F8F703333373F3333333733333778F8F8F8773
                333337F3333337F333333078F8F870333333373FF333F7333333330777770333
                333333773FF77333333333370007333333333333777333333333}
              NumGlyphs = 2
            end
          end
          object TSValores: TTabSheet
            Caption = 'Valores'
            ImageIndex = 3
            object Label12: TLabel
              Left = 4
              Top = 11
              Width = 90
              Height = 16
              Caption = 'Base ICMS Nor'
            end
            object Label13: TLabel
              Left = 113
              Top = 11
              Width = 90
              Height = 16
              Caption = 'Valor ICMS Nor'
            end
            object Label14: TLabel
              Left = 223
              Top = 11
              Width = 93
              Height = 16
              Caption = 'Base ICMS Sub'
            end
            object Label15: TLabel
              Left = 332
              Top = 11
              Width = 93
              Height = 16
              Caption = 'Valor ICMS Sub'
            end
            object Label18: TLabel
              Left = 4
              Top = 62
              Width = 64
              Height = 16
              Caption = 'Valor Frete'
            end
            object Label19: TLabel
              Left = 113
              Top = 62
              Width = 75
              Height = 16
              Caption = 'Valor Seguro'
            end
            object Label20: TLabel
              Left = 222
              Top = 62
              Width = 73
              Height = 16
              Caption = 'Valor Outros'
            end
            object Label21: TLabel
              Left = 334
              Top = 62
              Width = 81
              Height = 16
              Caption = 'Valor Total IPI'
            end
            object Label22: TLabel
              Left = 442
              Top = 62
              Width = 100
              Height = 16
              Caption = 'Valor Nota Fiscal'
            end
            object Label8: TLabel
              Left = 441
              Top = 112
              Width = 89
              Height = 16
              Caption = 'Valor Desconto'
            end
            object Label9: TLabel
              Left = 441
              Top = 11
              Width = 84
              Height = 16
              Caption = 'Valor Tot Itens'
            end
            object DBRGFrete: TDBRadioGroup
              Left = 4
              Top = 106
              Width = 98
              Height = 63
              Caption = '  Frete  '
              Ctl3D = False
              DataField = 'NF_TEMFRETE'
              DataSource = dsCadastro
              Items.Strings = (
                'Dentro'
                'Fora')
              ParentCtl3D = False
              TabOrder = 0
              Values.Strings = (
                '1'
                '2')
            end
            object RxDBBaseICMSNormal: TRxDBCalcEdit
              Left = 4
              Top = 28
              Width = 98
              Height = 24
              DataField = 'NF_BASEICMSNORM'
              DataSource = dsCadastro
              Ctl3D = False
              DisplayFormat = '0.,00'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 1
            end
            object RxDBValorICMSNormal: TRxDBCalcEdit
              Left = 113
              Top = 28
              Width = 99
              Height = 24
              DataField = 'NF_VALORICMSNORM'
              DataSource = dsCadastro
              Ctl3D = False
              DisplayFormat = '0.,00'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 2
            end
            object RxDBBaseICMSSub: TRxDBCalcEdit
              Left = 223
              Top = 28
              Width = 98
              Height = 24
              DataField = 'NF_BASEICMSSUB'
              DataSource = dsCadastro
              Ctl3D = False
              DisplayFormat = '0.,00'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 3
            end
            object RxDBValorICMSSub: TRxDBCalcEdit
              Left = 332
              Top = 28
              Width = 99
              Height = 24
              DataField = 'NF_VALORICMSSUB'
              DataSource = dsCadastro
              Ctl3D = False
              DisplayFormat = '0.,00'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 4
              OnExit = RxDBValorICMSSubExit
            end
            object RxDBValorTotalItens: TRxDBCalcEdit
              Left = 441
              Top = 28
              Width = 98
              Height = 24
              DataField = 'NF_TOTALITENS'
              DataSource = dsCadastro
              Ctl3D = False
              DisplayFormat = '0.,00'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 5
            end
            object RxDBValorFrete: TRxDBCalcEdit
              Left = 4
              Top = 78
              Width = 98
              Height = 23
              DataField = 'NF_VALORFRETE'
              DataSource = dsCadastro
              Ctl3D = False
              DisplayFormat = '0.,00'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 6
              OnExit = RxDBValorFreteExit
            end
            object RxDBValorSeguro: TRxDBCalcEdit
              Left = 113
              Top = 78
              Width = 99
              Height = 23
              DataField = 'NF_VALORSEGURO'
              DataSource = dsCadastro
              Ctl3D = False
              DisplayFormat = '0.,00'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 7
              OnExit = RxDBValorSeguroExit
            end
            object RxDBValorOutros: TRxDBCalcEdit
              Left = 223
              Top = 78
              Width = 98
              Height = 23
              DataField = 'NF_VALOROUTROS'
              DataSource = dsCadastro
              Ctl3D = False
              DisplayFormat = '0.,00'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 8
              OnExit = RxDBValorOutrosExit
            end
            object RxDBValorTotalIPI: TRxDBCalcEdit
              Left = 332
              Top = 78
              Width = 99
              Height = 23
              DataField = 'NF_VALORTOTALIPI'
              DataSource = dsCadastro
              Ctl3D = False
              DisplayFormat = '0.,00'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 9
              OnExit = RxDBValorTotalIPIExit
            end
            object RxDBValorNotaFiscal: TRxDBCalcEdit
              Left = 441
              Top = 78
              Width = 98
              Height = 23
              DataField = 'NF_VALORNF'
              DataSource = dsCadastro
              Ctl3D = False
              DisplayFormat = '0.,00'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 10
            end
            object RxDBValorDesconto: TRxDBCalcEdit
              Left = 441
              Top = 127
              Width = 98
              Height = 23
              DataField = 'NF_VALORDESCONTO'
              DataSource = dsCadastro
              Ctl3D = False
              DisplayFormat = '0.,00'
              ButtonWidth = 0
              NumGlyphs = 2
              ParentCtl3D = False
              TabOrder = 11
            end
          end
          object TSContasPagar: TTabSheet
            Caption = 'Contas a Pagar'
            ImageIndex = 1
            object PCContasPagar: TPageControl
              Left = 0
              Top = 0
              Width = 834
              Height = 329
              ActivePage = TabSheet1
              Align = alClient
              TabIndex = 0
              TabOrder = 0
              object TabSheet1: TTabSheet
                Caption = 'Pagamento'
                object Label16: TLabel
                  Left = 172
                  Top = 5
                  Width = 63
                  Height = 16
                  AutoSize = False
                  Caption = 'Valor Total]'
                end
                object Label17: TLabel
                  Left = 172
                  Top = 31
                  Width = 132
                  Height = 16
                  Caption = 'Quantidade de Faturas'
                end
                object Label28: TLabel
                  Left = 172
                  Top = 57
                  Width = 97
                  Height = 16
                  Caption = 'Dias p/ 1'#170' Fatura'
                end
                object Label29: TLabel
                  Left = 172
                  Top = 82
                  Width = 101
                  Height = 16
                  Caption = 'Data da 1'#170' Fatura'
                end
                object Label30: TLabel
                  Left = 172
                  Top = 134
                  Width = 164
                  Height = 16
                  Caption = 'Dias p/ Pr'#243'xima(s) Fatura(s)'
                end
                object Label40: TLabel
                  Left = 172
                  Top = 160
                  Width = 104
                  Height = 16
                  Caption = 'Valor da 1'#170' Fatura'
                end
                object Label45: TLabel
                  Left = 172
                  Top = 186
                  Width = 178
                  Height = 16
                  Caption = 'Valor da(s) Pr'#243'ximas Fatura(s)'
                end
                object Label46: TLabel
                  Left = 172
                  Top = 108
                  Width = 61
                  Height = 16
                  Caption = 'Fixar dia ?'
                end
                object RxDBCalcEdit1: TRxDBCalcEdit
                  Left = 370
                  Top = 5
                  Width = 94
                  Height = 23
                  DataField = 'NF_VALOR_TOTAL_PAGAMENTO'
                  DataSource = dsCadastro
                  Ctl3D = False
                  DisplayFormat = '0.,00'
                  ButtonWidth = 0
                  NumGlyphs = 2
                  ParentCtl3D = False
                  TabOrder = 0
                end
                object RxDBCQtdFat: TRxDBCalcEdit
                  Left = 370
                  Top = 31
                  Width = 56
                  Height = 23
                  DataField = 'NF_QTD_FATURAS_PAGAMENTO'
                  DataSource = dsCadastro
                  Ctl3D = False
                  DisplayFormat = '0'
                  ButtonWidth = 0
                  NumGlyphs = 2
                  ParentCtl3D = False
                  TabOrder = 1
                  OnExit = RxDBCQtdFatExit
                end
                object RxDBCDiasPPrimeiraFat: TRxDBCalcEdit
                  Left = 370
                  Top = 57
                  Width = 56
                  Height = 23
                  DataField = 'NF_QTD_DIAS_PRIMEIRA_FAT_PAGAME'
                  DataSource = dsCadastro
                  Ctl3D = False
                  DisplayFormat = '0'
                  ButtonWidth = 0
                  NumGlyphs = 2
                  ParentCtl3D = False
                  TabOrder = 2
                  OnExit = RxDBCDiasPPrimeiraFatExit
                end
                object DBDDataPPrimeiraFat: TDBDateEdit
                  Left = 370
                  Top = 82
                  Width = 115
                  Height = 24
                  DataField = 'NF_DATA_PRIMEIRA_FAT_PAGAMENTO'
                  DataSource = dsCadastro
                  Ctl3D = False
                  ButtonWidth = 22
                  NumGlyphs = 2
                  ParentCtl3D = False
                  TabOrder = 3
                end
                object RxDBCDiasProxFat: TRxDBCalcEdit
                  Left = 370
                  Top = 134
                  Width = 56
                  Height = 24
                  DataField = 'NF_QTD_DIAS_PROXIMA_FAT_PAGAMEN'
                  DataSource = dsCadastro
                  Ctl3D = False
                  DisplayFormat = '0'
                  ButtonWidth = 0
                  NumGlyphs = 2
                  ParentCtl3D = False
                  TabOrder = 4
                end
                object RxDBCValorPrimeiraFat: TRxDBCalcEdit
                  Left = 370
                  Top = 160
                  Width = 94
                  Height = 23
                  DataField = 'NF_VALOR_PRIMEIRA_FAT_PAGAMENTO'
                  DataSource = dsCadastro
                  Ctl3D = False
                  DisplayFormat = '0.,00'
                  ButtonWidth = 0
                  NumGlyphs = 2
                  ParentCtl3D = False
                  TabOrder = 5
                  OnExit = RxDBCValorPrimeiraFatExit
                end
                object RxDBCValorPRoximasFat: TRxDBCalcEdit
                  Left = 370
                  Top = 186
                  Width = 94
                  Height = 23
                  DataField = 'NF_VALOR_FATURAS_RESTANTES_PAGA'
                  DataSource = dsCadastro
                  Ctl3D = False
                  DisplayFormat = '0.,00'
                  ButtonWidth = 0
                  NumGlyphs = 2
                  ParentCtl3D = False
                  TabOrder = 6
                end
                object BitAjustarValor: TBitBtn
                  Tag = 1
                  Left = 485
                  Top = 160
                  Width = 86
                  Height = 49
                  Caption = 'Ajustar Valor'
                  TabOrder = 7
                  TabStop = False
                  OnClick = BitAjustarValorClick
                  NumGlyphs = 2
                end
                object CheckBSim: TCheckBox
                  Left = 370
                  Top = 108
                  Width = 53
                  Height = 21
                  Caption = 'Sim'
                  TabOrder = 8
                  OnClick = CheckBSimClick
                end
                object CheckBNao: TCheckBox
                  Left = 430
                  Top = 108
                  Width = 52
                  Height = 21
                  Caption = 'N'#227'o'
                  Checked = True
                  State = cbChecked
                  TabOrder = 9
                  OnClick = CheckBNaoClick
                end
                object DBCBGerarCAP: TDBCheckBox
                  Left = 10
                  Top = 5
                  Width = 151
                  Height = 21
                  Caption = 'Gerar Contas a Pagar'
                  DataField = 'NF_INDICACAO_GERA_CAP'
                  DataSource = dsCadastro
                  TabOrder = 10
                  ValueChecked = '1'
                  ValueUnchecked = '0'
                  OnClick = DBCBGerarCAPClick
                end
              end
              object TabSheet2: TTabSheet
                Caption = 'Classifica'#231#227'o'
                ImageIndex = 1
                object SpeedButton1: TSpeedButton
                  Tag = 1
                  Left = 497
                  Top = 126
                  Width = 26
                  Height = 23
                  Caption = '-->'
                  OnClick = SpeedButton1Click
                end
                object Label24: TLabel
                  Left = 5
                  Top = 106
                  Width = 141
                  Height = 16
                  Caption = 'Classifica'#231#227'o Financeira'
                end
                object Label47: TLabel
                  Left = 5
                  Top = 4
                  Width = 112
                  Height = 16
                  Caption = 'Tipo de Documento'
                end
                object Label48: TLabel
                  Left = 256
                  Top = 4
                  Width = 49
                  Height = 16
                  Caption = 'Portador'
                end
                object Label49: TLabel
                  Left = 6
                  Top = 55
                  Width = 94
                  Height = 16
                  Caption = 'Centro de Custo'
                end
                object DBLCBPlanocontas: TDBLookupComboBox
                  Left = 5
                  Top = 126
                  Width = 492
                  Height = 22
                  Ctl3D = False
                  DataField = 'NF_PLANOCONTAS'
                  DataSource = DSNotaFiscal
                  KeyField = 'CODIGO'
                  ListField = 'DESCRICAO'
                  ListSource = DSPlanosaida
                  ParentCtl3D = False
                  TabOrder = 3
                  OnKeyDown = DBLCBTipoDocumentoKeyDown
                end
                object DBLCBTipoDocumento: TDBLookupComboBox
                  Left = 5
                  Top = 21
                  Width = 240
                  Height = 22
                  Ctl3D = False
                  DataField = 'NF_TIPO_DOCUMENTO'
                  DataSource = DSNotaFiscal
                  KeyField = 'TIPO_DOC_CODIGO'
                  ListField = 'TIPO_DOC_DESCRICAO'
                  ListSource = DSTipoDocumento
                  ParentCtl3D = False
                  TabOrder = 0
                  OnKeyDown = DBLCBTipoDocumentoKeyDown
                end
                object DBLCBPortador: TDBLookupComboBox
                  Left = 257
                  Top = 21
                  Width = 240
                  Height = 22
                  Ctl3D = False
                  DataField = 'NF_PORTADOR'
                  DataSource = DSNotaFiscal
                  KeyField = 'PORT_CODIGO'
                  ListField = 'PORT_DESCRICAO'
                  ListSource = DSPortador
                  ParentCtl3D = False
                  TabOrder = 1
                  OnKeyDown = DBLCBTipoDocumentoKeyDown
                end
                object DBLCBCentroCusto: TDBLookupComboBox
                  Left = 5
                  Top = 74
                  Width = 492
                  Height = 22
                  Ctl3D = False
                  DataField = 'NF_CENTRO_CUSTO'
                  DataSource = DSNotaFiscal
                  KeyField = 'CODIGO'
                  ListField = 'DESCRICAO'
                  ListSource = dsCentroCusto
                  ParentCtl3D = False
                  TabOrder = 2
                  OnKeyDown = DBLCBTipoDocumentoKeyDown
                end
              end
            end
          end
        end
      end
    end
  end
  inherited QCadastro: TQuery
    SQL.Strings = (
      'Select * from NotaFiscal ')
  end
  inherited cdsCadastro: TClientDataSet
    Top = 288
    object cdsCadastroNF_CODIGO: TIntegerField
      DisplayLabel = 'C'#243'digo'
      FieldName = 'NF_CODIGO'
    end
    object cdsCadastroNF_PEDIDO: TIntegerField
      DisplayLabel = 'N'#186' Pedido'
      FieldName = 'NF_PEDIDO'
    end
    object cdsCadastroNF_NOTAFISCAL: TStringField
      DisplayLabel = 'N'#186' Nota Fiscal'
      FieldName = 'NF_NOTAFISCAL'
      Size = 9
    end
    object cdsCadastroNF_SERIE: TStringField
      DisplayLabel = 'S'#233'rie'
      FieldName = 'NF_SERIE'
      Size = 3
    end
    object cdsCadastroNF_CFOPNF: TIntegerField
      DisplayLabel = 'CFOP'
      FieldName = 'NF_CFOPNF'
    end
    object cdsCadastroNF_CFOPLF: TIntegerField
      DisplayLabel = 'CFOP Livro Fiscal'
      FieldName = 'NF_CFOPLF'
    end
    object cdsCadastroNF_LOCAL: TIntegerField
      DisplayLabel = 'Local Estoque'
      FieldName = 'NF_LOCAL'
    end
    object cdsCadastroNF_FORNECEDOR: TIntegerField
      DisplayLabel = 'Fornecedor'
      FieldName = 'NF_FORNECEDOR'
    end
    object cdsCadastroNF_ACEITADIF: TStringField
      FieldName = 'NF_ACEITADIF'
      Size = 6
    end
    object cdsCadastroNF_DATAEMISSAO: TDateTimeField
      DisplayLabel = 'Emiss'#227'o'
      FieldName = 'NF_DATAEMISSAO'
    end
    object cdsCadastroNF_DATAESTOQUE: TDateTimeField
      DisplayLabel = 'Entrada Estoque'
      FieldName = 'NF_DATAESTOQUE'
    end
    object cdsCadastroNF_VALORDESCONTO: TFloatField
      DisplayLabel = 'Desconto'
      FieldName = 'NF_VALORDESCONTO'
    end
    object cdsCadastroNF_BASEICMSNORM: TFloatField
      DisplayLabel = 'Base ICMS'
      FieldName = 'NF_BASEICMSNORM'
    end
    object cdsCadastroNF_VALORICMSNORM: TFloatField
      DisplayLabel = 'Vr. ICMS'
      FieldName = 'NF_VALORICMSNORM'
    end
    object cdsCadastroNF_BASEICMSSUB: TFloatField
      DisplayLabel = 'Base ICMS Subs.'
      FieldName = 'NF_BASEICMSSUB'
    end
    object cdsCadastroNF_VALORICMSSUB: TFloatField
      FieldName = 'NF_VALORICMSSUB'
    end
    object cdsCadastroNF_TOTALITENS: TFloatField
      DisplayLabel = 'Itens'
      FieldName = 'NF_TOTALITENS'
    end
    object cdsCadastroNF_TEMFRETE: TStringField
      FieldName = 'NF_TEMFRETE'
      Size = 1
    end
    object cdsCadastroNF_VALORFRETE: TFloatField
      FieldName = 'NF_VALORFRETE'
    end
    object cdsCadastroNF_VALORSEGURO: TFloatField
      FieldName = 'NF_VALORSEGURO'
    end
    object cdsCadastroNF_VALOROUTROS: TFloatField
      FieldName = 'NF_VALOROUTROS'
    end
    object cdsCadastroNF_VALORTOTALIPI: TFloatField
      FieldName = 'NF_VALORTOTALIPI'
    end
    object cdsCadastroNF_VALORNF: TFloatField
      DisplayLabel = 'Vr. Total Nota'
      FieldName = 'NF_VALORNF'
      DisplayFormat = '#,##0.00'
    end
    object cdsCadastroNF_GERACP: TStringField
      FieldName = 'NF_GERACP'
      Size = 6
    end
    object cdsCadastroNF_PLANOCONTAS: TIntegerField
      FieldName = 'NF_PLANOCONTAS'
    end
    object cdsCadastroCODIGOEMPRESA: TIntegerField
      FieldName = 'CODIGOEMPRESA'
    end
    object cdsCadastroNF_BICMSOK: TStringField
      FieldName = 'NF_BICMSOK'
      Size = 6
    end
    object cdsCadastroNF_VICMSOK: TStringField
      FieldName = 'NF_VICMSOK'
      Size = 6
    end
    object cdsCadastroNF_VIPIOK: TStringField
      FieldName = 'NF_VIPIOK'
      Size = 6
    end
    object cdsCadastroNF_VNFOK: TStringField
      FieldName = 'NF_VNFOK'
      Size = 6
    end
    object cdsCadastroNF_SITUACAO: TIntegerField
      DisplayLabel = 'Situa'#231#227'o'
      FieldName = 'NF_SITUACAO'
    end
    object cdsCadastroNF_TIPO_DOCUMENTO: TIntegerField
      FieldName = 'NF_TIPO_DOCUMENTO'
    end
    object cdsCadastroNF_PORTADOR: TIntegerField
      FieldName = 'NF_PORTADOR'
    end
    object cdsCadastroNF_CENTRO_CUSTO: TIntegerField
      FieldName = 'NF_CENTRO_CUSTO'
    end
    object cdsCadastroNF_VALOR_TOTAL_PAGAMENTO: TFloatField
      FieldName = 'NF_VALOR_TOTAL_PAGAMENTO'
    end
    object cdsCadastroNF_QTD_FATURAS_PAGAMENTO: TIntegerField
      FieldName = 'NF_QTD_FATURAS_PAGAMENTO'
    end
    object cdsCadastroNF_QTD_DIAS_PRIMEIRA_FAT_PAGAME: TIntegerField
      FieldName = 'NF_QTD_DIAS_PRIMEIRA_FAT_PAGAME'
    end
    object cdsCadastroNF_DATA_PRIMEIRA_FAT_PAGAMENTO: TDateTimeField
      FieldName = 'NF_DATA_PRIMEIRA_FAT_PAGAMENTO'
    end
    object cdsCadastroNF_FIXAR_DIA_PAGAMENTO: TIntegerField
      FieldName = 'NF_FIXAR_DIA_PAGAMENTO'
    end
    object cdsCadastroNF_QTD_DIAS_PROXIMA_FAT_PAGAMEN: TIntegerField
      FieldName = 'NF_QTD_DIAS_PROXIMA_FAT_PAGAMEN'
    end
    object cdsCadastroNF_VALOR_PRIMEIRA_FAT_PAGAMENTO: TFloatField
      FieldName = 'NF_VALOR_PRIMEIRA_FAT_PAGAMENTO'
    end
    object cdsCadastroNF_VALOR_FATURAS_RESTANTES_PAGA: TFloatField
      FieldName = 'NF_VALOR_FATURAS_RESTANTES_PAGA'
    end
    object cdsCadastroNF_INDICACAO_GERA_CAP: TIntegerField
      FieldName = 'NF_INDICACAO_GERA_CAP'
    end
    object cdsCadastroUSUARIO_CADASTRO: TStringField
      FieldName = 'USUARIO_CADASTRO'
    end
    object cdsCadastroUSUARIO_AUTERACAO: TStringField
      FieldName = 'USUARIO_AUTERACAO'
    end
    object cdsCadastroUSUARIO_EXCLUSAO: TStringField
      FieldName = 'USUARIO_EXCLUSAO'
    end
    object cdsCadastroDATA_CADASTRO: TDateTimeField
      FieldName = 'DATA_CADASTRO'
    end
    object cdsCadastroDATA_EXCLUSAO: TDateTimeField
      FieldName = 'DATA_EXCLUSAO'
    end
    object cdsCadastroDATA_AUTERACAO: TDateTimeField
      FieldName = 'DATA_AUTERACAO'
    end
    object cdsCadastroEXCLUIDO: TStringField
      FieldName = 'EXCLUIDO'
      FixedChar = True
      Size = 1
    end
  end
  inherited dsCamposPesquisa: TDataSource
    Left = 712
    Top = 128
  end
  object DSNotaFiscal: TDataSource
    Left = 712
    Top = 256
  end
  object DSLocal: TDataSource
    DataSet = DMGestao.QLocal
    Left = 712
    Top = 288
  end
  object DSCFOPNF: TDataSource
    DataSet = DMFinanceiro.QCFOP
    Left = 712
    Top = 352
  end
  object DSCFOPLF: TDataSource
    DataSet = DMFinanceiro.QCFOP
    Left = 744
    Top = 352
  end
  object DSFornecedor: TDataSource
    DataSet = DMGestao.QFornecedor
    Left = 744
    Top = 192
  end
  object DSPlanosaida: TDataSource
    DataSet = DMFinanceiro.QPlanoSaida
    Left = 744
    Top = 320
  end
  object DSPrestacao: TDataSource
    DataSet = QPrestacao
    Left = 744
    Top = 288
  end
  object QItensNF: TQuery
    DatabaseName = 'base'
    RequestLive = True
    SQL.Strings = (
      'Select * FROM ItensNotaFiscal')
    Left = 776
    Top = 288
  end
  object DSItensNF: TDataSource
    DataSet = CDSItensNota
    OnDataChange = DSItensNFDataChange
    Left = 744
    Top = 256
  end
  object QPrestacao: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      
        'select PrestacaoNotaFiscal.*,CONT_CORR_DESCRICAO,ESP_DESCRICAO f' +
        'rom (PrestacaoNotaFiscal  inner join Contacorrente on  PREST_NF_' +
        'CONTA = CONT_CORR_CODIGO ) inner join Especie on  PREST_NF_ESPEC' +
        'IE = ESP_CODIGO')
    Left = 776
    Top = 192
  end
  object DSConta: TDataSource
    DataSet = DMFinanceiro.QConta
    Left = 744
    Top = 128
  end
  object QVerifica: TQuery
    DatabaseName = 'base'
    Left = 776
    Top = 160
  end
  object DSEspecie: TDataSource
    DataSet = DMFinanceiro.QEspecie
    Left = 744
    Top = 224
  end
  object DSPedido: TDataSource
    DataSet = QPedidoCompra
    Left = 712
    Top = 320
  end
  object DSProduto: TDataSource
    DataSet = QProduto
    OnDataChange = DSProdutoDataChange
    Left = 744
    Top = 160
  end
  object QProduto: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      'select * from Produto'
      'Where Prod_Natureza in (0,1)'
      'Order by Prod_DescricaoEnt')
    Left = 776
    Top = 320
  end
  object QPedidoCompra: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      'select * from Pedido'
      'Order by Ped_Codigo')
    Left = 776
    Top = 256
  end
  object QItensPedidoCompra: TQuery
    DatabaseName = 'base'
    SQL.Strings = (
      'select * from Pedido'
      'Order by Ped_Codigo')
    Left = 776
    Top = 224
  end
  object CDSItensNota: TClientDataSet
    Aggregates = <>
    Params = <>
    Left = 776
    Top = 351
  end
  object DSPortador: TDataSource
    DataSet = DMFinanceiro.Qportador
    Left = 712
    Top = 224
  end
  object dsCentroCusto: TDataSource
    DataSet = DMFinanceiro.QCentro
    Left = 712
    Top = 192
  end
  object DSTipoDocumento: TDataSource
    DataSet = DMFinanceiro.QTipoDocumento
    Left = 712
    Top = 160
  end
end
